<template>
	<view class="uni-page-head">
		<view class="uni-page-head-hd" @click="addblack()">
			<view class="uni-page-tid">
				<i class="uni-btn-icon" style="color: rgb(0, 0, 0); font-size: 27px;"></i>
			</view>
			<view class="uni-page-head-bd">
				<view class="uni-page-head__title" style="font-size: 16px; opacity: 1;"> {{title}} </view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['title','isflag'],
		data() {
			return {

			}
		},
		methods: {
			//返回上一页
			addblack(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.uni-page-head {
		background-color: rgb(255, 255, 255);
		color: rgb(0, 0, 0);
		position: fixed;
		    top: 0;
		    z-index: 999;
			width: 100%;
		.uni-page-head-hd {
			display: -webkit-box;
			display: -webkit-flex;
			display: flex;
			-webkit-box-align: center;
			-webkit-align-items: center;
			align-items: center;
			font-size: 32rpx;
			padding: 20rpx;
		}

		.uni-page-head__title {
			font-weight: 700;
			font-size: 32rpx;
			line-height: 60rpx;
			text-align: center;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}

		.uni-page-head-bd {
			 min-width: 0;
			 width: 100%;
		}
	}
</style>
